package idazkaria;

import java.awt.BorderLayout;
import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JLabel;
import java.awt.Font;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JTextField;
import javax.swing.JComboBox;
import javax.swing.DefaultComboBoxModel;
import javax.swing.JButton;

import com.toedter.calendar.JCalendar;

public class EI_Hitzordua_editatu_1_3_6_1 extends JFrame {

	private JPanel contentPane;
	private JTextField bezeroNAN;
	private JTextField terapeutaNAN;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					EI_Hitzordua_editatu_1_3_6_1 frame = new EI_Hitzordua_editatu_1_3_6_1();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public EI_Hitzordua_editatu_1_3_6_1() {
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 662, 338);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		contentPane.setLayout(null);
		
		JLabel lblHitzorduaSortu = new JLabel("HITZORDUA EDITATU:");
		lblHitzorduaSortu.setFont(new Font("Tahoma", Font.BOLD, 16));
		lblHitzorduaSortu.setBounds(23, 11, 210, 14);
		contentPane.add(lblHitzorduaSortu);
		
		JLabel lblBezeroa = new JLabel("Bezeroaren NAN-a");
		lblBezeroa.setBounds(23, 44, 106, 14);
		contentPane.add(lblBezeroa);
		
		bezeroNAN = new JTextField();
		bezeroNAN.setBounds(158, 41, 153, 20);
		contentPane.add(bezeroNAN);
		bezeroNAN.setColumns(10);
		
		JLabel lblTerapeuta = new JLabel("Terapeutaren NAN-a");
		lblTerapeuta.setBounds(23, 75, 139, 14);
		contentPane.add(lblTerapeuta);
		
		terapeutaNAN = new JTextField();
		terapeutaNAN.setBounds(158, 72, 153, 20);
		contentPane.add(terapeutaNAN);
		terapeutaNAN.setColumns(10);
		
		JLabel lblTerapia = new JLabel("Terapia");
		lblTerapia.setBounds(23, 110, 56, 14);
		contentPane.add(lblTerapia);
		
		JComboBox comboBox = new JComboBox();
		comboBox.setModel(new DefaultComboBoxModel(new String[] {"Akupuntura", "Yoga saioak", "Moxibustion", "Pilates saioak"}));
		comboBox.setBounds(72, 107, 106, 20);
		contentPane.add(comboBox);
		
		JLabel lblAgenda = new JLabel("Agenda");
		lblAgenda.setBounds(280, 110, 56, 14);
		contentPane.add(lblAgenda);
		

		//egutegia panel batean sartu dut. AGENDA etiketa azpian jartzeko, setBounds metodoaren zenbakiak aldatu ditut.
		JPanel calendar=new JPanel();
		calendar.setBounds(346, 110, 251, 187);
		this.contentPane.add(calendar);
		calendar.add(new JCalendar());
		
		JButton btnGorde = new JButton("Gorde");
		btnGorde.setBounds(54, 190, 89, 23);
		contentPane.add(btnGorde);
		
		JButton btnAtzera = new JButton("Atzera");
		btnAtzera.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
				EI_Hitzordua_editatu_aukeratu_pantaila_1_3_6 bat=new EI_Hitzordua_editatu_aukeratu_pantaila_1_3_6();
				bat.setVisible(true);
				EI_Hitzordua_editatu_1_3_6_1.this.setVisible(false);}
			});
		btnAtzera.setBounds(158, 190, 89, 23);
		contentPane.add(btnAtzera);
		
		JLabel label = new JLabel("Adib: 11111111v");
		label.setBounds(321, 44, 115, 14);
		contentPane.add(label);
	}

}
